﻿#region License Information

/* •——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————•
   | Copyright Aptillon, Inc.                                                                                        |
   | This file is part of the CKS:API project - cksapi.codeplex.com                                                       |
   | Usage, modification and distribution subject to the license terms available here: http://cksapi.codeplex.com/license |
   |                                                                                                                      |
   | Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,             |
   | either express or implied.                                                                                           |
   |                                                                                                                      |
   | THIS MESSAGE MAY NOT BE LEGALLY REMOVED                                                                              |
   •——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————• */

#endregion


using System.Diagnostics;
using System;
using System.Web.UI;
using System.Web;
using CKS.API.Logging;


namespace CKS.API.Exceptions
{
    /// <summary>
    /// Custom exception class for errors caused at runtime while an object in the Framework is in an invalid state.  
    /// Inherits from <see cref="CKSException" /> 
    /// </summary>
    /// <remarks>
    /// 
    /// Modification History: NONE
    /// </remarks>
    [Serializable]
    public class CKSInvalidOperationException : CKSException
    {

        public CKSInvalidOperationException(string logMessage, CKSLoggingCategory category)
            : base(
                "Invalid Operation: " + logMessage,
                null,
                category,
                Guid.NewGuid()) { }


    }
}